<?php

namespace App\Transformers;

use App\Models\Schedule;

class ScheduleTransformer extends BaseTransformer
{
    public function transform(Schedule $model)
    {
        return [
            'id' => $model->id,
            'begin_time' => $model->begin_time,
            'end_time' => $model->end_time,
            'price' => getMoneyFormat($model->price),
            'status' => $model->status,
            'created_at' => $model->created_at->toDateTimeString(),
        ];
    }
}
